﻿using UnityEngine;
using System.Collections;

public class GUI_Button : MonoBehaviour {
	
	public Texture2D buttonImage1 = null;
	public Texture2D buttonImage2 = null;
	public Texture2D buttonImage3 = null;
	public Texture2D buttonImage4 = null;
	public Texture2D buttonImage5 = null;


	private void OnGUI()
	{
		if (GUI.Button (new Rect (280, 210, buttonImage1.width, buttonImage1.height), buttonImage1)) 
		{
			
			string[] zones = new string[3] { "Grape", "Melon", "Peach" };
					
			int random = Random.Range(0, 3);
						
			Application.LoadLevel(zones[random]);

		}
		if (GUI.Button (new Rect (560, 210, buttonImage2.width, buttonImage2.height), buttonImage2)) 
		{

		}
		if (GUI.Button (new Rect (840, 210, buttonImage3.width, buttonImage3.height), buttonImage3)) 
		{

		}
		
		if (GUI.Button (new Rect (170, 300, 70, 70), buttonImage4)) 
		{
		}
		
		if (GUI.Button (new Rect (1070, 300, 70, 70), buttonImage5)) 
		{
		}
	}
	
}